<!DOCTYPE html>
<html>
<head th:include="include :: header"></head>
<body class="layui-bg-white">
<div class="layui-form" style="padding:20px;">
    <input id="clearField" name="clearField" value="clearField" type="hidden">
    <div class="layui-form-item">
        <label class="layui-form-label">父级标签：</label>
        <div class="layui-input-block">
            <select data-placeholder="--选择--" name="parentId" class="form-control chosen-select" tabindex="2" lay-search>
                <option value="">请选择标签</option>
                <option th:each="item : ${parentList}" th:value="${item.id}" th:text="${item.name}"></option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><span class="required">*</span>标签名：</label>
        <div class="layui-input-block">
            <input type="text" name="name" lay-verify="required" placeholder="请输入标签名" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><span class="required">*</span>数据值：</label>
        <div class="layui-input-block">
            <input type="text" name="value" lay-verify="required" placeholder="请输入数据值" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><span class="required">*</span>类型：</label>
        <div class="layui-input-block">
            <input type="text" name="type" lay-verify="required" placeholder="请输入类型" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">描述：</label>
        <div class="layui-input-block">
            <input type="text" name="description" placeholder="请输入描述" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">排序：</label>
        <div class="layui-input-block">
            <input type="text" name="sortNumber" lay-verify="number" placeholder="请输入排序（升序）" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">备注信息：</label>
        <div class="layui-input-block">
            <input type="text" name="remark" placeholder="请输入备注信息" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item layui-hide">
        <input type="button" lay-submit lay-filter="LAY-operate-submit" id="LAY-operate-submit" value="确认">
    </div>
</div>
<div th:include="include :: footer"></div>
<script type="text/javascript">
    layui.config({
        base: ctx + '/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index'         //主入口模块
    }).use(['index', 'form', 'laydate'], function () {
        var $ = layui.$, form = layui.form, laydate = layui.laydate;

        form.verify(commonJs.form.verify);
    })
</script>
</body>
</html>

